package com.ruoyi.platform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.platform.mapper.MarketingActivitiesMapper;
import com.ruoyi.platform.domain.MarketingActivities;
import com.ruoyi.platform.service.IMarketingActivitiesService;

/**
 * 营销活动管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-21
 */
@Service
public class MarketingActivitiesServiceImpl implements IMarketingActivitiesService 
{
    @Autowired
    private MarketingActivitiesMapper marketingActivitiesMapper;

    /**
     * 查询营销活动管理
     * 
     * @param activityId 营销活动管理主键
     * @return 营销活动管理
     */
    @Override
    public MarketingActivities selectMarketingActivitiesByActivityId(String activityId)
    {
        return marketingActivitiesMapper.selectMarketingActivitiesByActivityId(activityId);
    }

    /**
     * 查询营销活动管理列表
     * 
     * @param marketingActivities 营销活动管理
     * @return 营销活动管理
     */
    @Override
    public List<MarketingActivities> selectMarketingActivitiesList(MarketingActivities marketingActivities)
    {
        return marketingActivitiesMapper.selectMarketingActivitiesList(marketingActivities);
    }

    /**
     * 新增营销活动管理
     * 
     * @param marketingActivities 营销活动管理
     * @return 结果
     */
    @Override
    public int insertMarketingActivities(MarketingActivities marketingActivities)
    {
        return marketingActivitiesMapper.insertMarketingActivities(marketingActivities);
    }

    /**
     * 修改营销活动管理
     * 
     * @param marketingActivities 营销活动管理
     * @return 结果
     */
    @Override
    public int updateMarketingActivities(MarketingActivities marketingActivities)
    {
        return marketingActivitiesMapper.updateMarketingActivities(marketingActivities);
    }

    /**
     * 批量删除营销活动管理
     * 
     * @param activityIds 需要删除的营销活动管理主键
     * @return 结果
     */
    @Override
    public int deleteMarketingActivitiesByActivityIds(String[] activityIds)
    {
        return marketingActivitiesMapper.deleteMarketingActivitiesByActivityIds(activityIds);
    }

    /**
     * 删除营销活动管理信息
     * 
     * @param activityId 营销活动管理主键
     * @return 结果
     */
    @Override
    public int deleteMarketingActivitiesByActivityId(String activityId)
    {
        return marketingActivitiesMapper.deleteMarketingActivitiesByActivityId(activityId);
    }
}
